package com.bolehui.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bolehui.domain.dto.ConversationDTO;
import com.bolehui.domain.dto.PassCountDTO;
import com.bolehui.domain.po.Conversation;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * @author chendongjie     email:chendongjie@gz.iscas.ac.cn
 * @version 1.0
 * @ClassName ConversationMapper
 * @Description
 * @createTime 2025/3/15-13:47
 * Copyright (C) 2021-2022 CASEEDER, All Rights Reserved.
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 */
@Mapper
public interface ConversationMapper extends BaseMapper<Conversation> {
    List<ConversationDTO> listByCompanyIdWithPage(Long companyId);

    Long countByCreateTimeBetween(LocalDate startDate, LocalDate endDate);

    PassCountDTO getPreviewStatistics();
}
